// FunctionRegisterInfoTemplate.h: interface for the FunctionRegisterInfoTemplate class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FUNCTIONREGISTERINFOTEMPLATE_H__C691186F_24B4_4FAF_913B_84CC00585D8B__INCLUDED_)
#define AFX_FUNCTIONREGISTERINFOTEMPLATE_H__C691186F_24B4_4FAF_913B_84CC00585D8B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "FunctionRegisterInfo.h"

template <class FunctionStyle> class FunctionRegisterInfoTemplate: public FunctionRegisterInfo 
{
public:
	FunctionRegisterInfoTemplate(INT nFunctionID, const CString& strFunctionName, FunctionStyle* (*pCreateObject)());
	virtual ~FunctionRegisterInfoTemplate();

private:
	FunctionStyle* (*m_pCreateObject)();
};

template <class FunctionStyle> FunctionRegisterInfoTemplate(
															INT nFunctionID, 
															const CString& strFunctionName, 
															FunctionStyle* (*pCreateObject)())
															:FunctionRegisterInfo(nFunctionID, strFunctionName)
{
	m_pCreateObject
}
#endif // !defined(AFX_FUNCTIONREGISTERINFOTEMPLATE_H__C691186F_24B4_4FAF_913B_84CC00585D8B__INCLUDED_)
